﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="del.aspx.cs" Inherits="orgman_users_del" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>删除用户</title>
    <link href="../../outcome/artDialog/skin/aero/aero.css" rel="stylesheet" type="text/css" />

    <script src="../../outcome/artDialog/artDialog.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
function dia(){
    var url=location.href;
    var un=url.split("=");
    if( confirm("确认删除用户"+un[1]+"吗？"))
    {
        document.getElementById("Button1").click(); 
   /*     var state="<% =del() %>";
            if(state=="yes")
            {
                alert("成功！");location.href="list.aspx";
            }
            else
            {
                alert("失败！"+state);location.href="list.aspx";
            } 
  */  }
    else
    {
        location.href="list.aspx";
    }
    /*
    artDialog(
        {
            content:"确认删除用户"+un[1]+"吗？",
            lock:true,style:"confirm noClose"
        },
        function()
        { 
            var state="<% =del() %>";
            if(state=="yes")
            {
                alert("成功！");location.href="list.aspx";
            }
            else
            {
                alert("失败！"+state);location.href="list.aspx";
            } 
        },
        function()
        { 
            location.href="list.aspx";
        }
    );
    */
}
    </script>    

    <style type="text/css">
        .btn
        {
            display: none;
        }
    </style>

</head>
<body onload="dia()">
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="Button1" runat="server" Text="Button" 
            onclick="Button1_Click" CssClass="btn" />
    </div>
    </form>
</body>
</html>
